/*
A(void)
B(void)
~B(void)
~A(void)

 */
#include <iostream>
using namespace std;
class A{
	public:
		A(void){
			cout << "A(void)" << endl;
		}
		~A(void){
			cout <<"~A(void)" << endl;
		}
};
class B{
	public:
		B(void){
			cout << "B(void)" << endl;
		}
		~B(void){
			cout << "~B(void)" << endl;
		}
		A m_a; // 成员子对象
};
int main(void){
	B b;
	return 0;
}
